'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});

var URLSearchParams = void 0;
var getUrlSearchParams = exports.getUrlSearchParams = function getUrlSearchParams(search) {
    if (URLSearchParams) {
        return new URLSearchParams(search);
    }
    URLSearchParams = require('url-search-params');
    return new URLSearchParams(search);
};

exports.default = getUrlSearchParams;